var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var s = e("ModuleUI"),
    _ = cc._decorator,
    u = _.ccclass,
    p = _.property,
    m = (function (e) {
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            return (
                (t.join_btn = null),
                t
            );
        }
        return (
            __extends(t, e),

            (t.prototype.initView = function () {
                console.log('888888888888888888888')
            }),
            (t.prototype.OnClick = function (t) {
                switch ((e.prototype.OnClick.call(this, t), t.node.name)) {
                    case "join_btn":
                        let tt = window['tt']
                        tt.navigateToScene({
                            scene: "sidebar",
                            success: (res) => {
                                console.log("navigate to scene success");
                                // this.reward.active = true;
                                // this.join.active = false;
                                // this.close();
                            },
                            fail: (res) => {
                                console.log("navigate to scene fail: ", res);
                                // 跳转失败回调逻辑
                            },
                        });
                        break;
                }
            }),
            __decorate([p(cc.Node)], t.prototype, "join_btn", void 0),
            __decorate([u], t)
        );
    })(s.default);
o.default = m;
